import constants from '@/commons/constants';
const moduleCode = constants.MODULE_MALL_CODE;
export default [
    {
        path: '/marketing',
        redirect: '/marketing/coupon',
        code: 'marking_management',
        moduleCode
    },
    {
        path: '/marketing/coupon',
        component: () => import('@/views/mall/marketing/coupon/index.vue'),
        name: 'marketingCoupon',
        meta: {
            title: '优惠券',
            permAuth: false,
            code: 'coupon_list:query',
            keepAlive: true,
            moduleCode
        }
    },
    {
        path: '/marketing/coupon/enoughAdd',
        component: () => import('@/views/mall/marketing/coupon/add/index.vue'),
        meta: {
            title: '新增满减券',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/coupon/discountAdd',
        component: () => import('@/views/mall/marketing/coupon/add/index.vue'),
        meta: {
            title: '新增折扣券',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/coupon/detail',
        component: () => import('@/views/mall/marketing/coupon/detail/index.vue'),
        meta: {
            title: '优惠券详情',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/coupon/enoughEdit',
        component: () => import('@/views/mall/marketing/coupon/add/index.vue'),
        meta: {
            title: '编辑满减券',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/coupon/discountEdit',
        component: () => import('@/views/mall/marketing/coupon/add/index.vue'),
        meta: {
            title: '编辑折扣券',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/group',
        name: 'marketingGroup',
        component: () => import('@/views/mall/marketing/group/index.vue'),
        meta: {
            title: '拼团活动',
            permAuth: true,
            keepAlive: true,
            code: 'group_list',
            moduleCode
        }
    },
    {
        path: '/marketing/group/add',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '新增普通拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/newAdd',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '新增老带新拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/ladderAdd',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '新增阶梯拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/detail',
        component: () => import('@/views/mall/marketing/group/detail/index.vue'),
        meta: {
            title: '活动详情',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/edit',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '编辑普通拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/newEdit',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '编辑老带新拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/group/ladderEdit',
        component: () => import('@/views/mall/marketing/group/add.vue'),
        meta: {
            title: '编辑阶梯拼团',
            permAuth: false,
            moduleCode
        }
    },
    {
        path: '/marketing/seckill',
        component: () => import('@/views/mall/marketing/seckill/list.vue'),
        meta: {
            code: 'seckill_list',
            title: '秒杀',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/seckill/create',
        component: () => import('@/views/mall/marketing/seckill/create/index.vue'),
        meta: {
            title: '新增秒杀活动',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/seckill/edit',
        component: () => import('@/views/mall/marketing/seckill/create/index.vue'),
        meta: {
            title: '编辑秒杀活动',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/seckill/detail',
        component: () => import('@/views/mall/marketing/seckill/detail/index.vue'),
        meta: {
            title: '秒杀活动详情',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/lottery',
        name: 'marketingLottery',
        component: () => import('@/views/mall/marketing/lottery/index.vue'),
        meta: {
            title: '抽奖',
            moduleCode,
            code: 'lottery_list',
            keepAlive: true
        }
    },
    {
        path: '/marketing/lottery/add',
        component: () => import('@/views/mall/marketing/lottery/add/index.vue'),
        meta: {
            title: '新增抽奖',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/lottery/edit',
        component: () => import('@/views/mall/marketing/lottery/add/index.vue'),
        meta: {
            title: '编辑抽奖',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/lottery/detail',
        component: () => import('@/views/mall/marketing/lottery/detail/index.vue'),
        meta: {
            title: '抽奖详情',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/live',
        component: () => import('@/views/mall/marketing/live/index.vue'),
        meta: {
            title: '直播',
            moduleCode,
            permAuth: true
        }
    },
    {
        path: '/marketing/enough',
        name: 'marketingEnough',
        component: () => import('@/views/mall/marketing/enough/index.vue'),
        meta: {
            title: '满减',
            moduleCode,
            keepAlive: true,
            permAuth: true,
            code: 'enough_list'
        }
    },
    {
        path: '/marketing/enough/yuanAdd',
        component: () => import('@/views/mall/marketing/enough/add/index.vue'),
        meta: {
            title: '新增满x元减',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/enough/pieceAdd',
        component: () => import('@/views/mall/marketing/enough/add/index.vue'),
        meta: {
            title: '新增满x件折',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/enough/yuanEdit',
        component: () => import('@/views/mall/marketing/enough/add/index.vue'),
        meta: {
            title: '编辑满x元减',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/enough/pieceEdit',
        component: () => import('@/views/mall/marketing/enough/add/index.vue'),
        meta: {
            title: '编辑满x件减',
            moduleCode,
            permAuth: false
        }
    },
    {
        path: '/marketing/enough/detail',
        component: () => import('@/views/mall/marketing/enough/detail/index.vue'),
        meta: {
            title: '满减详情',
            moduleCode,
            permAuth: false
        }
    }
];
